package com.songyz.image.compress.dto;

public class ImageCompressParam {

    private int model;// 压缩模式：1，默认模式，2，质量调整，3，尺寸调整，4，自定义

    private double scale;// 按比例缩放

    private double quality;// 图片质量

    private int witth;// 宽高
    private int height;// 宽高
    private boolean force;// 是否强制拉伸

    public int getModel() {
        return model;
    }

    public void setModel(int model) {
        this.model = model;
    }

    public double getScale() {
        return scale;
    }

    public void setScale(double scale) {
        this.scale = scale;
    }

    public double getQuality() {
        return quality;
    }

    public void setQuality(double quality) {
        this.quality = quality;
    }

    public int getWitth() {
        return witth;
    }

    public void setWitth(int witth) {
        this.witth = witth;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public boolean isForce() {
        return force;
    }

    public void setForce(boolean force) {
        this.force = force;
    }

    @Override
    public String toString() {
        return "ImageCompressParam [model=" + model + ", scale=" + scale + ", quality=" + quality + ", witth=" + witth + ", height="
                + height + ", force=" + force + "]";
    }

}
